//
//  XMLUtil.h
//  XMLApp
//
//  Created by Nguyen .a.Hph on 3/4/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GDataXMLNode.h"
#import "GDataXMLNode+XHTML.h"

@interface XMLUtil : NSObject
//private method

//end private method

+(GDataXMLNode *)getContentFor:(NSString *)xpath doc:(GDataXMLDocument *)doc;
+(GDataXMLNode *)getContentFor:(NSString *)xpath removeXPath:(NSArray *)removeXPaths doc:(GDataXMLDocument *)doc;
+(GDataXMLNode *)getContentFor:(GDataXMLNode *)parentNode removeXPath:(NSArray *)removeXPaths;

// <summary>
// <param name="doc"></param>
// <param name="xpath1"></param>
// <param name="isInclude1"></param>
// <param name="isInner1"></param>
// <param name="xpath2"></param>
// <param name="isInclude2"></param>
// <param name="isInner2"></param>
// <param name="type">
//     0: node same level\n
//    -1: node1 is outer level node2\n
//     1: node1 is inner level node2
// </param>
// <param name="isInner">get InnerXml or OuterXml for all other nodes</param>
// <returns></returns>
// </summary>
+(NSString *)getContent:(GDataXMLDocument *)doc xpath1:(NSString *)xpath1 isInclude1:(BOOL)isInclude1 isInner1:(BOOL)isInner1 xpath2:(NSString *)xpath2 isInclude2:(BOOL)isInclude2 isInner2:(BOOL)isInner2 type:(int)type isInner:(BOOL)isInner removeXPath:(NSArray *)removeXPaths;

+(NSSet *)getDocumentSrc:(GDataXMLDocument *)doc;

@end
